<?php
/*
 * Created on 30.05.2007
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

  class Spieler extends Doctrine_Record {

  	public function setUp() {
  		$this->hasOne("Mannschaft", "Spieler.mannschaft_id");
  		$this->hasOne("Status", "Spieler.status_id");
  		$this->hasOne("Form", "Spieler.form_id");
  		$this->hasOne("SpielHauptPosition", "Spieler.goldenBoyPosition_id");
  	}

	public function setTableDefinition () {

		$this->setTableName("spieler");

		$this->hasColumn
		(
			"mannschaft_id",
			"integer"

		);

		$this->hasColumn
		(
			"vorname",
			"string",
			50

		);

		$this->hasColumn
		(
			"nachname",
			"string",
			50

		);

		$this->hasColumn
		(
			"hattrickSpieler_id",
			"integer"

		);

		$this->hasColumn
		(
			"geburtstag",
			"integer"

		);

		$this->hasColumn
		(
			"bemerkung",
			"string",
			500

		);

		$this->hasColumn
		(
			"aktiv",
			"string",
			50

		);

		$this->hasColumn
		(
			"form_id",
			"integer"

		);

		$this->hasColumn
		(
			"status_id",
			"integer"

		);

		$this->hasColumn
		(
			"goldenBoy",
			"boolean"
		);

		$this->hasColumn
		(
			"goldenBoyPosition_id",
			"integer"
		);
	}
 }
?>

